package com.yidu.verycd_background.controller;

import com.yidu.verycd_background.entity.VerycdImg;
import com.yidu.verycd_background.service.VerycdImgService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (VerycdImg)表控制层
 *
 * @author makejava
 * @since 2020-07-27 09:57:00
 */
@RestController
@RequestMapping("verycdImg")
public class VerycdImgController {
    /**
     * 服务对象
     */
    @Resource
    private VerycdImgService verycdImgService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public VerycdImg selectOne(Integer id) {
        return this.verycdImgService.queryById(id);
    }

}